﻿using System;

namespace ForFactorial
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 20;
            long p = 1;

            for (int i = 1; i <= n; i++)
            {
                p = p * i;
                Console.WriteLine("{0}! = {1}", i, p);
            }



            Console.ReadKey();
        }
    }
}
